package main

import (
	"fmt"
	"io/ioutil"

	"sigs.k8s.io/yaml"
)

func main() {
	b, err := ioutil.ReadFile("config/yaml/application.yml")
	if err != nil {
		fmt.Println(err.Error())
		return
	}

	fmt.Println(string(b))

	jobConfig := &GarkJobConfig{}

	err = yaml.Unmarshal(b, jobConfig)

	if err != nil {
		fmt.Println(err.Error())
		return
	}

	fmt.Println(jobConfig)

}
